package view;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.GridLayout;
import javax.swing.JPanel;

/**
 * A column panel contains a vertical column of notes. If a column panel is
 * enabled, it will be overlayed with a red tint.
 */
public class ColumnPanel extends JPanel {

	public ColumnPanel() {
		this.setEnabled(false);
		this.setLayout(new GridLayout(9,1));
		this.setOpaque(false);
	}

	@Override
	public void paint(Graphics g) {
		super.paint(g);
		if(this.isEnabled()) {
			g.setColor(new Color(0x66C43100, true));
			g.fillRect(0, 0, this.getWidth(), this.getHeight());
		}
	}

}
